#pragma once

#include<iostream>
using namespace std;

//inline void F(int x, int y);

struct Stack
{
	void Init(int DEFAULTCAPACITY = 4);
	
	void Push(int x)
	{
		a[top++] = x;
	}

	void Destory()
	{
		free(a);
		a = nullptr;
		top = capacity;
	}

	void Top()
	{
		cout << a[top - 1] << endl;
	}
	int* a;
	int top;
	int capacity;
};